package agents;

import java.util.Vector;

import env.City;

public abstract class AgentImpl implements Agent {
	public Vector<City> goals;
	public int score;
	public City goal;
	public City current;
	public int R;
	
	public int getScore() {
		return score;
	}
	public String currentCityName()
	{
		return current.getName();
	}
	public int getR()
	{
		return R;
	}
	public void setR(int R)
	{
		this.R=R;
	}
	
	public void setScore(int score) {
		this.score = score;
	}


	
	public City getGoal() {
		if(goal!=null)
			return goal;
		return goals.firstElement();
	}

	public Vector<City> getGoals()
	{
		return goals;
	}
	public void setCurrentCity(City city)
	{
		current=city;
	}
}
